﻿using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Common.Util;

namespace Common.Test.Util
{
    [TestClass]
    public class DateTimeTest
    {
        [TestMethod]
        public void TestEndcodeDecode()
        {
            DateTime dt = new DateTime(2016, 2, 7);
            int a = dt.GetWeekOfMonth();
            Assert.AreEqual(a, 2);

            DateTime dt3 = new DateTime(2016, 2, 28);
            int a3 = dt3.GetWeekOfMonth();
            Assert.AreEqual(a3, 5);
        }
    }
}
